GSK_DEBUG_FALLBACK = 1 << 8
} GskDebugFlags;
+#define GSK_DEBUG_ANY ((1 << 9) - 1)
+
typedef enum {
GSK_RENDERING_MODE_GEOMETRY = 1 << 0,
GSK_RENDERING_MODE_SHADERS = 1 << 1,
#include "gtkrenderbackgroundprivate.h"
#include "gtkcssshadowsvalueprivate.h"
#include "gtkdebugupdatesprivate.h"
+#include "gsk/gskdebugprivate.h"
#include "inspector/window.h"
gtk_snapshot_pop (snapshot);
}
+static gboolean
+should_record_names (GtkWidget *widget)
+{
+ return gtk_inspector_is_recording (widget) ||
+ gsk_check_debug_flags (GSK_DEBUG_ANY);
+}
+
void
gtk_widget_render (GtkWidget *widget,
GdkWindow *window,
gtk_snapshot_init (&snapshot,
renderer,
- gtk_inspector_is_recording (widget),
+ should_record_names (widget),
clip,
"Render<%s>", G_OBJECT_TYPE_NAME (widget));
cairo_region_destroy (clip);